.management-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: 20px;
}

.management-header {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.management-content {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 统计卡片 */
.stats-card {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 20px 16px;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.2;
}

/* 标签页容器 */
.tabs-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tab-title {
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* 训练列表 */
.training-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.training-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.training-card:active {
  transform: scale(0.98);
}

.training-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.training-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.training-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.training-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.training-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.training-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.meta-item svg {
  font-size: 14px;
  color: #ff6b35;
  flex-shrink: 0;
}

.today-label {
  background: #ff6b35;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  margin-left: 6px;
  font-weight: bold;
}

.training-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* 操作按钮区域 */
.training-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 4px;
}

.training-actions .adm-button {
  min-width: 60px;
  height: 32px;
  border-radius: 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.training-actions .adm-button svg {
  font-size: 12px;
}

/* 空状态样式 */
.adm-empty {
  background: white;
  border-radius: 16px;
  margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item {
    padding: 8px 0;
  }
  
  .training-actions {
    justify-content: center;
  }
  
  .training-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .training-thumbnail {
    width: 80px;
    height: 80px;
  }
}

/* 动画效果 */
.training-card {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-card {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 状态指示器 */
.training-card[data-status="upcoming"] {
  border-left: 4px solid #ff6b35;
}

.training-card[data-status="completed"] {
  border-left: 4px solid #52c41a;
}

.training-card[data-status="cancelled"] {
  border-left: 4px solid #ff4d4f;
}

/* 标签页内容区域 */
.adm-tabs-content {
  padding: 0;
}

.adm-tabs-header {
  padding: 0 16px;
  background: white;
}

/* 优化按钮样式 */
.training-actions .adm-button-fill-outline {
  border-width: 1px;
  font-weight: 500;
}

.training-actions .adm-button-color-primary.adm-button-fill-outline {
  border-color: #ff6b35;
  color: #ff6b35;
}

.training-actions .adm-button-color-primary.adm-button-fill-outline:active {
  background-color: rgba(255, 107, 53, 0.1);
}
